<template>
<div>
  <div class="bigimg">
    <div class="img">
      <div class="longimg">
        <img :src="bigimgsrc" alt="">
      </div>
      <div class="del" @click="hidebigimg"><img src="./img/del.png" alt=""></div></div>
  </div>
</div>
</template>

<script>
  export default {
    name: "index",
    props: ['bigimgsrc'],
    methods: {
      hidebigimg() {
        this.$emit('hideimg')
      }
    }
  }
</script>

<style lang="scss" scoped>
  .bigimg{
    background:rgba(0,0,0,0.3);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 16px;
    z-index: 9999;
  .longimg{
    margin: 50px auto;
    width: 50%;
    max-height: 480px;
    overflow: auto;
  img{
    width: 100%;
    height: auto;
  }
  }
  .img{
    width: 100%;
  }
  .del{
    width: 40px;
    height: 40px;
    margin: 28px auto 0 auto;
    img{
      width: 100%;
    }
  }
  }
</style>
